package com.chess.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.chess.db.DbSave;
import com.jfinal.kit.LogKit;

public class DBSaveJob implements Job {

	@Override
	public void execute(JobExecutionContext ctx) throws JobExecutionException {
		try {
			DbSave.saveAll();
			LogKit.info("db savaAll flushAll Success");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
